/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const codeSnippetRouter = {
  path: '/code-snippet',
  component: Layout,
  redirect: '/code-snippet/list',
  name: 'CodeSnippets',
  meta: {
    title: 'CodeSnippets',
    icon: 'code-snippet'
  },
  children: [
    {
      path: 'create',
      component: () => import('@/views/info/code-snippet/create'),
      name: 'CreateCodeSnippet',
      meta: { title: 'Create CodeSnippet', icon: 'edit' },
      hidden: true
    },
    {
      path: 'edit/:id',
      component: () => import('@/views/info/code-snippet/edit'),
      name: 'EditCodeSnippet',
      meta: {
        title: 'Edit CodeSnippet',
        activeMenu: '/info-code-snippet/list'
      },
      hidden: true
    },
    {
      path: 'list',
      component: () => import('@/views/info/code-snippet/list'),
      name: 'CodeSnippetList',
      meta: { title: 'CodeSnippets', icon: 'code-snippet' }
    },
    {
      path: 'snippet/:id',
      component: () => import('@/views/info/code-snippet/snippet'),
      name: 'Snippet',
      meta: { title: 'Snippet', activeMenu: '/info-code-snippet/list' },
      hidden: true
    }
  ]
}

export default codeSnippetRouter
